/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.mobbuzz.util.theme;

import com.sun.lwuit.Font;
import com.sun.lwuit.Image;
import com.sun.lwuit.animations.CommonTransitions;
import com.sun.lwuit.animations.Transition;
import com.sun.lwuit.util.Resources;
import java.io.IOException;

/**
 *
 * @author irw
 */
public class Theme {
    private static Resources resources;
    private static Font fontDescriptionStyle;
    private static Transition in;
    private static Transition out;
    
   public static Resources getResources() {
        try {
            resources = Resources.open("/mobbuzz.res");
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        return resources;
    }

    public static Font getFontDescriptionStyle(String fontType) {
        fontDescriptionStyle = getResources().getFont(fontType);
        return fontDescriptionStyle;
    }
    
    
    public static Transition getTransitionIn() {
        in = CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, true, 100);
        return in;
    }

    public static Transition getTransitionOut() {
        out = CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, false, 100);
        return out;
    }
}
